import config from "@/config"
import http from "@/utils/request"

export default {
  list: {
		url: `${config.API_URL}/assistant/recordCourseware/get`,
		name: "数据列表",
		get: async function(params){
			return await http.get(this.url , params);
		}
	},
	login: {
		url: `${config.API_URL}/authentication/form`,
		name: "用户登录",
		post: async function(params){
			return await http.post(this.url, params);
		}
	},
	qywxlogin: {
		url: `${config.API_URL}/authentication/qxLogin`,
		name: "企业微信登录",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	changePassword: {
		url: `${config.API_URL}/account/changePassword`,
		name: "修改密码",
		post: async function(params){
			return await http.post(this.url, params);
		}
	},
	logout: {
		url: `${config.API_URL}/authentication/logout`,
		name: "用户退出",
		post: async function(params){
			return await http.post(this.url, params);
		}
	},
	userinfo: {
		url: `${config.API_URL}/authentication/me`,
		name: "用户信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	add: {
		url: `${config.API_URL}/assistant/recordCourseware/`,
		name: "录播新增",
		post: async function(params){
			return await http.post(this.url, params);
		}
	},
	courseclassify: {
		url: `${config.API_URL}/assistant/recordCourseware/getCourseClassify`,
		name: "数据列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	

	
}